﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
using ZSZ.Common;
using static System.Console;
using ZSZ.Service;

namespace ZSZ.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            //string s = CommonHelper.GenerateCaptchaCode(4);
            //WriteLine(s);

            //using (MailMessage mailMessage = new MailMessage())
            //using (SmtpClient smtpClient = new SmtpClient("smtp.126.com"))
            //{
            //    mailMessage.To.Add("758674232@qq.com");
            //    mailMessage.Body = "测试一下smtp服务";
            //    mailMessage.From = new MailAddress("fabian1989@126.com");
            //    mailMessage.Subject = "邮件标题";
            //    smtpClient.Credentials = new System.Net.NetworkCredential("fabian1989@126.com", "xxxxxx");// 如果启用了“客户端授权码”，要用授权码代替密码
            //    smtpClient.Send(mailMessage);
            //}

            //using (ZSZDbContext ctx = new ZSZDbContext())
            //{
            //    ctx.Database.Delete();
            //    ctx.Database.Create();
            //}
            WriteLine("ok");
            ReadKey();
        }
    }
}
